




<div class="x-body">
    <div class="layui-form form_single" id="form" action="{:url()}" method="post" layui-filter="test1">
    <div class="layui-form-item">
        <label for="template_name" class="layui-form-label">
            <span class="x-red">*</span>模板名称
        </label>
        <div class="layui-input-block">
            <input type="text" id="template_name" name="template_name" onchange="this.value=this.value.substring(0, 30)" onkeydown="this.value=this.value.substring(0, 30)" onkeyup="this.value=this.value.substring(0, 30)"  required="" lay-verify="required"
                   autocomplete="off"  value="{$data['name']}" class="layui-input">
        </div>
        <div style="color: red !important;" class="layui-form-mid layui-word-aux">
            （限制30字符）
        </div>
    </div>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>交易员账号</th>
            <th>会员账号</th>
            <th>产品类型</th>
            <th>本金</th>
            <th>分红百分比</th>
            <th>赢几次</th>
            <th>输几次</th>
            <th>和几次</th>

        </tr>
        </thead>

        <tbody>
        {volist name='data["data"]' id='vo' key="k"}
        <tr>
            <td>

                <div><input style="width: 100px" name="king[]" value="{$vo['king']}"></div>


            </td>
            <td>

                <div><input style="width: 100px" name="user_name[]" value="{$vo['user_name']}"></div>


            </td>
            <td>
                <div>
                    <select name="product_id[]" >
                        {volist name='product' id='v'}
                        <option value="{$v['id']}" {notempty name="$vo['product_id']"}{if condition="$vo['product_id'] eq $v['id']"} selected="selected" {/if}{/notempty} >{$v['name']}</option>
                        {/volist}
                    </select>
                </div>

            </td>
            <td>
                <div><input style="width: 100px" name="money[]" value="{$vo['money']}"></div>

            </td>
            <td>
                <div><input style="width: 100px" name="percent[]" value="{$vo['percent']}"></div>


            </td>
            <td >
                <div><input style="width: 100px" name="win_count[]" value="{$vo['win_count']}"></div>


            </td>
            <td>
                <div><input style="width: 100px"  name="loss_count[]" value="{$vo['loss_count']}"></div>


            </td>
            <td >
                <div><input style="width: 100px" name="draw_count[]" value="{$vo['draw_count']}"></div>
            </td>
            


        </tr>
        {/volist}

        <input style="width: 100px" name="id" value="{$data['id']}" hidden>
        </tbody>
    </table>
    <div class="box-footer">

        {include file="layout/edit_btn_group"/}

    </div>
    </div>
</div>


</body>

</html>
